package ch.fusun.baron.server.rmi;

import ch.fusun.baron.data.AbstractDataProvider;
import ch.fusun.baron.data.DataUpdate;
import ch.fusun.baron.data.EmptyUpdate;

/**
 * Holds the game state
 */
public class GameStateServiceImpl extends AbstractDataProvider implements
		GameStateService {

	private ServerPhase phase = ServerPhase.LOBBY;

	@Override
	public ServerPhase current() {
		return this.phase;
	}

	@Override
	public void transitionTo(ServerPhase newPhase) {
		this.phase = newPhase;
	}

	@Override
	public DataUpdate createFullUpdate() {
		return new EmptyUpdate();
	}

}
